plugins {
  id 'java'
  id 'application'
  id 'com.github.johnrengelman.shadow' version '1.2.3'
  id 'maven'
}

group 'com.yevster'

version '0.2-SNAPSHOT'
mainClassName = 'org.quackware.spdxtra.CommandLineTool'


sourceCompatibility = 1.8
repositories {
    mavenCentral()
    maven {
        url  "http://dl.bintray.com/yevster/maven" 
    }
}

dependencies {
    compile "org.apache.jena:jena-core:3.0.1"
    compile 'org.apache.jena:jena-tdb:3.0.1'
    compile 'com.github.jsonld-java:jsonld-java-parent:0.8.2'
    compile 'com.google.guava:guava:19.0'
	compile 'com.yevster.net.rootdev:java-rdfa:0.4.3'
    testCompile "org.mockito:mockito-all:1.10.19"
    testCompile group: 'junit', name: 'junit', version: '4.11'
}

jar {
    manifest {       
        attributes("Implementation-Title": "$rootProject.name", "Implementation-Version": "$version", 'Main-Class': 'org.quackware.spdxtra.cli.CommandLineTool')
    }
	baseName="spdxtra"
}

task writeNewPom << {
    pom {
        project {
            licenses {
                license {
                    name 'The Apache Software License, Version 2.0'
                    url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
                    distribution 'repo'
                }
            }
        }
    }.writeTo("$buildDir/spdxtra-${version}.pom")
}
